package chaoyue.study.controller;

import chaoyue.study.service.HelloClientService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Resource
    private HelloClientService helloClientService;

    @GetMapping("hello")
    public String hello() {
        return helloClientService.sayHello("chaoyue");
    }
}
